package service

import (
	"mxshop/app/mxshop_api/admin/internal/data"
	srvUser "mxshop/app/mxshop_api/admin/internal/service/user"
	serviceUser "mxshop/app/mxshop_api/admin/internal/service/user/v1"
)

type ServiceFactory interface {
	User() srvUser.UserSrv
}

type service struct {
	data data.DataFactory
}

func (s *service) User() srvUser.UserSrv {
	return serviceUser.NewUserService(s.data)
}

func NewService(data data.DataFactory) *service {
	return &service{
		data: data,
	}
}

var _ ServiceFactory = &service{}
